import { defineStore } from "pinia"

export const UseModel = defineStore({
    id: 'Model',
    state: () => ({
        model: 'dashboard',
        edit: false
    }),
    actions: {
        async SetMdel(model: any) {
            this.$patch({
                model: model,
            });
        },
        async Setedit(edit: boolean) {
            this.$patch({
                edit: edit,
            });
        },
    },
})